/*
 * @Author: xudajie
 * @Date: 2021-04-26 14:18:58
 * @LastEditTime: 2021-09-07 11:25:30
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \fd-industry-inner-marking\src\utils\bus.js
 */
import Vue from 'vue'

const vue = new Vue({})
vue._$on = vue.$on
vue.$on = function bus(event, fn) {
  const vm = this
  // if (vm._events[event]) {
  //   vm.$off(event);
  // }
  vm._$on(event, fn)
}
export default vue
